package com.neu.constant;

public enum ProjectTypeEnum {
    WE(10),             /** 风电 **/
    PHOTOVOLTAIC(20),   /** 光伏 **/
    UNKNOWN(-1);

    public final int type;

    ProjectTypeEnum(int type){
        this.type=type;
    }

    public static ProjectTypeEnum of(int type) {
        if (type == WE.type) {
            return WE;
        } else if (type == PHOTOVOLTAIC.type) {
            return PHOTOVOLTAIC;
        } else {
            return UNKNOWN;
        }
    }
}
